<template>
  <div class="app-container">




<!--    {{myOrderList}}-->
    <el-table  :data="myOrderList" >
      <el-table-column type="selection" width="40" align="center" />
      <el-table-column label="ID" align="center" prop="id" />
      <el-table-column label="订单创建人" align="center" prop="cuserName" />
      <el-table-column label="订单总金额" align="center" prop="totalAmount" />
      <el-table-column label="订单创建时间" align="center" prop="orderCreatorTime" />
      <el-table-column label="订单状态" align="center" prop="orderType" />
      <el-table-column label="操作">
        <template slot-scope="scop">
          <el-button size="mini" @click="finOrderDetails(scop.row)">
            查看详情
          </el-button>
          <el-button size="mini"type="success" @click="payOrder(scop.row) ">
            去支付
          </el-button>
          <el-button size="mini" type="warning" @click="cancelpayOrder(scop.row) ">
            申请退款
          </el-button>
        </template>
      </el-table-column>
    </el-table>




  </div>
</template>

<script>
import { listOrder, getOrder, delOrder, addOrder, updateOrder,myOrderList } from "@/api/order/order";
import {listBusiness,merchantreview,getUserTaskList,getBusinessInfo,adminexamine,financeexamine,adminrantreview,cuserantreview}from "@/api/activiti/activiti";
export default {
  name: "Menu",
  data() {
    return {
      // 菜品表格数据
      myOrderList: [],
    };
  },
  created() {
    this.getList();
  },
  methods: {
    finOrderDetails(){

    },
    payOrder(row){
      debugger

    },
    /** 开始用户退款流程 */
    cancelpayOrder(){
      cuserantreview().then(res=>{
        alert("流程开启成功")
      })


    },
    /** 查询菜品列表 */
    getList() {
      myOrderList().then(res=>{
        this.myOrderList =res;
      })
    },

  }
};
</script>
